package com.imooc.demo.demos.web.controller;

import com.imooc.demo.demos.web.service.IPicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private IPicService picService;


    @GetMapping("/hello")
    public String hello(){
        picService.sayHello();
        picService.calculate(15,15);
        picService.output("www.baidu.com","www.google.com");
        return "hello";
    }
}
